﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="InserirProjeto.aspx.cs" Inherits="CursoUNICEUB.InserirProjeto" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h1>Cadastro de Projetos</h1>
        <table style="width:100%;">
            <tr>
                <td>
                    <asp:Label ID="Label1" runat="server" Text="Nome :"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtNome" runat="server" ValidationGroup="cadastrar" 
                        MaxLength="30" Width="250px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtNome" ErrorMessage="Nome." ForeColor="Red" 
                        ValidationGroup="cadastrar">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td valign="top">
                    <asp:Label ID="Label2" runat="server" Text="Descrição :"></asp:Label>
                </td>
                <td valign="top">
                    <asp:TextBox ID="txtDescricao" runat="server" Height="306px" 
                        TextMode="MultiLine" ValidationGroup="cadastrar" Width="437px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtDescricao" ErrorMessage="Descricao." ForeColor="Red" 
                        ValidationGroup="cadastrar">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    <asp:Button ID="btnCadastrar" runat="server" onclick="btnCadastrar_Click" 
                        Text="Cadastrar" ValidationGroup="cadastrar" />
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                        HeaderText="Favor verificar os seguintes campos :" ShowMessageBox="True" 
                        ShowSummary="False" ValidationGroup="cadastrar" />
                </td>
            </tr>
        </table>
</asp:Content>

